const { mysql } = require('../qcloud')

module.exports = async (ctx) => {
    const tops = await mysql('books').select('*').orderBy('count', 'desc').limit(6)
    ctx.state.data = {
        list: tops
    }
}
